public class demo1 {
    public static void main(String[] args) {
        Music m = new Music();
        Read r = new Read();
        m.start();
        r.start();
    }

}
class Music extends Thread{
    @Override
    public void run() {
        super.run();
        for(int i = 0; i <= 100; i ++ ){
            System.out.println(i + "听歌");
        }
    }
}
class Read extends Thread{
    @Override
    public void run() {
        super.run();
        for(int i = 0; i <= 100; i ++ ){
            System.out.println(i + "看书");
        }
    }
}
